%CALCULATEQANDABP_ALLINONE 汇合三种BIC传感器的吸收率，Q值
%@since 2022.4.22
%@update: 首次合并
%    *参数说明*
%       @param
%       @return
%    *使用说明*
%       逐行使用
% ———————————————— POWERED BY YINWEI ————————————————

%% 对于单BIC
%{

clc;clear;close all;
% 0-24是过阻尼，24以后是欠阻尼
[parameters, Abp_contour, ~] = Spara2QAR_AllInOne([5 3 4 6:31], -80:5:60,[1.2, 1.3], 'Y', 'Dx_short', 0, 1);
% 非等周期_Dx_小频段

clc; clear; close all;
run = [1 5 2 3 4 6 8 7 9 11 10 12:16]
[parameters, Abp_contour, ~] = Spara2QAR_AllInOne([run,17,run(end:-1:1)], -80:5:80, [1.2, 1.3], 'Y', 'Dx_short_PEC', 0, 1);
clear run;
% PEC_非等周期_Dx_小频段 - 2001

%}

%% 双向BIC
%{
    % BIC_224_dual_Dx
    clc; clear; close all;
    runID = [3 1 2 4 5 8 6 7 9 10];
%     全是过阻尼
    [parameters, Abp_contour, ~] = Spara2QAR_AllInOne([runID, 11, runID(end:-1:1)], -30:3:30, [1.2, 1.26], 'Y', 'YP_Dual_short', 0, -1);
% 全过
    [parameters, Abp_contour, ~] = Spara2QAR_AllInOne([runID, 11, runID(end:-1:1)], -30:3:30, [1.24, 1.3], 'X', 'XP_Dual_short', 0, -1);

    % PEC 2001
    clc; clear; close all;
    runID = [14:-1:12 15 16 18 17 19 20 21];
    [parameters, Abp_contour, ~] = Spara2QAR_AllInOne([runID, 1, runID(end:-1:1)], -30:3:30,[1.2, 1.26], 'Y', 'YP_Dual_PEC', 0, -1);
%     0-24 过阻尼 24-30 欠阻尼
    [parameters, Abp_contour, ~] = Spara2QAR_AllInOne([runID, 1, runID(end:-1:1)], -30:3:30, [1.24, 1.3], 'X', 'XP_Dual_PEC', 0, -1);
%}

%% 全金属
%{
%  非等周期_Dx_小频段_更小
clc; clear; close all;
runID = [1:7 9 8 11 10 13];
[parameters, Abp_contour, ~] = Spara2QAR_AllInOne([runID, 12, runID(end:-1:1)], -60:5:60, [1.2, 1.24], 'Y', 'Dy_Metallic', 0, -1);
%}
